package com.mcg.ash;

import com.mcg.plugin.omcxdb.Omcx;
import java.rmi.Naming;
import java.util.Map;

public class testTelnet {
    public static void main(String[] args) throws Exception {
        IAshOmc ashOmc = (IAshOmc) Naming.lookup("rmi://10.160.98.101:2223/ashOmc");
        String a ="C://ash//test.txt";
        Omcx omc=new Omcx();
        omc.setIp("132.226.223.79");
        omc.setOmcport("21123");
        omc.setOmcusr("ntlt");
        omc.setOmcpwd("Ntlt1234");
        Map<String, byte[]> map = ashOmc.test(a,omc);
        for (String s:map.keySet()){
            System.out.println(s);
        }
        for (byte[] bytes :map.values()){
            System.out.println(new String(bytes));
        }

    }

}

